package com.qyer.search.enums;

/**
 * User: Z J Wu Date: 2016/01/06 Time: 11:55 Package: com.qyer.search.enums
 */
public enum TagStatus {
  ENABLE(0), DISABLE(1);

  private int statusCode;

  TagStatus(int statusCode) {
    this.statusCode = statusCode;
  }

  public static TagStatus parse(int statusCode) {
    switch (statusCode) {
      case 0:
        return ENABLE;
      default:
        return DISABLE;
    }
  }
}
